body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: 100%;
  width: 100%;
  background-size: cover;
}

.container-common {
  width: 900px;
  margin: auto;
}

.container-wide {
  width: auto;
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

.title-common h1 {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: #3F6580 solid 1px;
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 3rem;
}

.section-common {
  width: 850px;
  margin: 60px auto;
}

.btn-common {
  padding: 8px 25px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9em;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: #166d80;
  color: white;
}

.btn-primary:hover {
  background-color: #0d5466;
  transform: translateY(-2px);
}

.btn-outline {
  background: none;
  border: 1px solid #166d80;
  color: #166d80;
}

.btn-outline:hover {
  background-color: #166d80;
  color: white;
}

.btn-secondary {
  background-color: #666;
  color: white;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary.active {
  background-color: #166d80;
  opacity: 1;
  cursor: pointer;
}


.add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #166d80;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.add-card:hover {
  border-style: solid;
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.add-icon {
  font-size: 50px;
  color: #166d80;
  font-weight: bold;
}

.add-text {
  color: #166d80;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
}

.modal-mask {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-wrapper {
  box-shadow: 0 2px 8px rgba(0,0,0,0.33);
}

.modal-container {
  width: 350px;
  background: #fff;
  border-radius: 8px;
  padding: 20px 30px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal-close:hover {
  color: #333;
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.form-common {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #166d80;
  box-shadow: 0 0 0 2px rgba(22, 109, 128, 0.2);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.submit-btn {
  background-color: #166d80;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #0d5466;
}

.cancel-btn {
  background-color: #666;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.cancel-btn:hover {
  background-color: #555;
}

.upload-container {
  border: 2px dashed #ddd;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.upload-container:hover {
  border-color: #166d80;
}

.preview {
  margin-bottom: 1rem;
}

.preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.upload-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #166d80;
  color: white !important;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-btn:hover {
  background-color: #0d5466;
}

.edit-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.edit-btn:hover {
  background-color: white;
}

.search-container {
  margin: 0 auto 30px;
  width: 100%;
  max-width: 600px;
}

.search-box {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 0 10px;
  background: white;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
}

.search-box input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
}

.search-box input::placeholder {
  color: #666;
}

@media (max-width: 960px) {
  .container-common,
  .section-common {
    width: 95%;
  }
}

@media (max-width: 600px) {
  .form-actions {
    flex-direction: column;
  }
  
  .submit-btn,
  .cancel-btn {
    width: 100%;
  }
} 